//
//  Sign.h
//  iAccountBook
//
//  Created by 侯伟 on 2020/3/23.
//  Copyright © 2020 侯伟. All rights reserved.
//  签名

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface Sign : NSObject

//签名验证
+ (BOOL)verifyString:(NSString*)str signStr:(NSString*)signStr publicKey:(NSString *)pubKey;
+ (BOOL)verifyData:(NSData*)data signData:(NSData*)signData publicKey:(NSString *)pubKey;
+ (BOOL)verifyString:(NSString*)str signStr:(NSString*)signStr privateKey:(NSString *)privateKey;
+ (BOOL)verifyData:(NSData*)data signData:(NSData*)signData privateKey:(NSString *)privateKey;

//签名
+ (NSString *)signString:(NSString *)str publicKey:(NSString *)pubKey;
+ (NSData *)signData:(NSData*)data publicKey:(NSString *)pubKey;
+ (NSString *)signString:(NSString*)str privateKey:(NSString *)privateKey;
+ (NSData *)signData:(NSData*)data privateKey:(NSString *)privateKey;

@end

NS_ASSUME_NONNULL_END
